$(document).ready(function() {
    $("#fileupload_1").uploadify({
        'height':32,
        'width':120,
        'uploader': '../resource/js/uploadify-2.swf',
        'script': '../sz/uploadTemPicture.action',
        'cancelImg': '../resource/images/cha.gif',
        'queueID': 'fileQueue',
        'auto': false,
        'multi': false,
        'fileDataName'   : 'files',
        'buttonImg':'../resource/images/choose_file.gif'
        /*'onSelect' : function(event, queueID, fileObj){
            alert("cao");
            console.log(fileObj.name);
        $('p#pictureUrl').append(fileObj.name);
    },
        onComplete : function(event, queueID, fileObj) {
            console.log(fileObj);
            $('p#pictureUrl').empty();
            $('p#pictureUrl').append(fileObj.name);
        }*/
    });
    $("#fileupload_2").uploadify({
        'height':32,
        'width':120,
        'uploader': '../resource/js/uploadify-2.swf',
        'script': '../sz/uploadTemPicture.action',
        'cancelImg': '../resource/images/cha.gif',
        'queueID': 'fileQueue',
        'auto': true,
        'multi': false,
        'fileDataName'   : 'files',
        'buttonImg':'../resource/images/choose_file.gif'
       /* onSelect : function(event,fileObj){
        $('p#videoUrl').append(fileObj.name);
    }
        onComplete : function(event, queueID, fileObj) {
            $('p#videoUrl').empty();
            $('p#videoUrl').append(fileObj.name);
        }*/
    });
});